Integrand size = 39, antiderivative size = 254 \[ \int \frac {\sqrt {g \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}{c+d \sin (e+f x)} \, dx=\frac {2 \sqrt {a+b} \sqrt {g} \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (1+\csc (e+f x))}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {g} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {g \sin (e+f x)}}\right ),-\frac {a+b}{a-b}\right ) \tan (e+f x)}{d f}-\frac {2 (b c-a d) \sqrt {-\cot ^2(e+f x)} \sqrt {\frac {b+a \csc (e+f x)}{a+b}} \operatorname {EllipticPi}\left (\frac {2 c}{c+d},\arcsin \left (\frac {\sqrt {1-\csc (e+f x)}}{\sqrt {2}}\right ),\frac {2 a}{a+b}\right ) \sqrt {g \sin (e+f x)} \tan (e+f x)}{d (c+d) f \sqrt {a+b \sin (e+f x)}} \]
[Out]
Time = 0.35 (sec) , antiderivative size = 254, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {3008, 2888, 3016} \[ \int \frac {\sqrt {g \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}{c+d \sin (e+f x)} \, dx=\frac {2 \sqrt {g} \sqrt {a+b} \tan (e+f x) \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (\csc (e+f x)+1)}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {g} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {g \sin (e+f x)}}\right ),-\frac {a+b}{a-b}\right )}{d f}-\frac {2 (b c-a d) \tan (e+f x) \sqrt {-\cot ^2(e+f x)} \sqrt {g \sin (e+f x)} \sqrt {\frac {a \csc (e+f x)+b}{a+b}} \operatorname {EllipticPi}\left (\frac {2 c}{c+d},\arcsin \left (\frac {\sqrt {1-\csc (e+f x)}}{\sqrt {2}}\right ),\frac {2 a}{a+b}\right )}{d f (c+d) \sqrt {a+b \sin (e+f x)}} \]
[In]
[Out]
Rule 2888
Rule 3008
Rule 3016
Rubi steps \begin{align*} \text {integral}& = \frac {b \int \frac {\sqrt {g \sin (e+f x)}}{\sqrt {a+b \sin (e+f x)}} \, dx}{d}-\frac {(b c-a d) \int \frac {\sqrt {g \sin (e+f x)}}{\sqrt {a+b \sin (e+f x)} (c+d \sin (e+f x))} \, dx}{d} \\ & = \frac {2 \sqrt {a+b} \sqrt {g} \sqrt {\frac {a (1-\csc (e+f x))}{a+b}} \sqrt {\frac {a (1+\csc (e+f x))}{a-b}} \operatorname {EllipticPi}\left (\frac {a+b}{b},\arcsin \left (\frac {\sqrt {g} \sqrt {a+b \sin (e+f x)}}{\sqrt {a+b} \sqrt {g \sin (e+f x)}}\right ),-\frac {a+b}{a-b}\right ) \tan (e+f x)}{d f}-\frac {2 (b c-a d) \sqrt {-\cot ^2(e+f x)} \sqrt {\frac {b+a \csc (e+f x)}{a+b}} \operatorname {EllipticPi}\left (\frac {2 c}{c+d},\arcsin \left (\frac {\sqrt {1-\csc (e+f x)}}{\sqrt {2}}\right ),\frac {2 a}{a+b}\right ) \sqrt {g \sin (e+f x)} \tan (e+f x)}{d (c+d) f \sqrt {a+b \sin (e+f x)}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 31.90 (sec) , antiderivative size = 23019, normalized size of antiderivative = 90.63 \[ \int \frac {\sqrt {g \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}{c+d \sin (e+f x)} \, dx=\text {Result too large to show} \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 2.66 (sec) , antiderivative size = 5478, normalized size of antiderivative = 21.57
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {g \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}{c+d \sin (e+f x)} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\sqrt {g \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}{c+d \sin (e+f x)} \, dx=\int \frac {\sqrt {g \sin {\left (e + f x \right )}} \sqrt {a + b \sin {\left (e + f x \right )}}}{c + d \sin {\left (e + f x \right )}}\, dx \]
[In]
[Out]
\[ \int \frac {\sqrt {g \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}{c+d \sin (e+f x)} \, dx=\int { \frac {\sqrt {b \sin \left (f x + e\right ) + a} \sqrt {g \sin \left (f x + e\right )}}{d \sin \left (f x + e\right ) + c} \,d x } \]
[In]
[Out]
\[ \int \frac {\sqrt {g \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}{c+d \sin (e+f x)} \, dx=\int { \frac {\sqrt {b \sin \left (f x + e\right ) + a} \sqrt {g \sin \left (f x + e\right )}}{d \sin \left (f x + e\right ) + c} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {g \sin (e+f x)} \sqrt {a+b \sin (e+f x)}}{c+d \sin (e+f x)} \, dx=\int \frac {\sqrt {g\,\sin \left (e+f\,x\right )}\,\sqrt {a+b\,\sin \left (e+f\,x\right )}}{c+d\,\sin \left (e+f\,x\right )} \,d x \]
[In]
[Out]